<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弹性布局</title>
		<style>
			#main{
				border: 2px solid red;
				display: flex;
				/* flex-direction: row-reverse; */
				/* flex-direction: column-reverse; */
				/* flex-direction: row;
				flex-wrap: wrap-reverse; */
				flex-flow: row wrap-reverse; 
			}
			#main>div{
				height: 100px;
				width: 100px;
				line-height: 100px;
				margin: 5px;
				background-color: aquamarine;
				font-size: 20px;
				text-align: center;
				color: white;
			}
		</style>
	</head>
	<body>
		<div id="main">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			<div>10</div>
			<div>11</div>
			<div>12</div>
			<div>13</div>
			<div>14</div>
		</div>
	</body>
</html>